package com.tanhua.server.service;

import com.tanhua.dubbo.api.UserLocationApi;
import com.tanhua.server.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class BaiduService {

    @DubboReference
    private UserLocationApi userLocationApi;

    //保存或者更新地理位置信息
    public void updateLocation(String addrStr, Double latitude, Double longitude) {
        userLocationApi.updateLocation(UserHolder.getUserId(),longitude,latitude,addrStr);
    }
}
